﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter21.Code02.Example05
{
  public  class Demo
    {
      public static void Begin()
      {
          List<string> columns;
          List<Dictionary<string, string>> myData = CommaValues.GetData(out columns);
          foreach (string column in columns)
          {
              Console.Write("{0,-20}", column);
          }
          Console.WriteLine();
          foreach (Dictionary<string, string> row in myData)
          {
              foreach (string column in columns)
              {
                  Console.Write("{0,-20}", row[column]);
              }
              Console.WriteLine();
          }
          Console.ReadLine();
      }
    }
}
